package com.boot.down.vo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Administrator
 */
@Data
public class UserTokenVO implements Serializable {

    private static final long serialVersionUID = -5593578502689326748L;
    private String userName;

    private String userRole;

    private String userIdCard;

    @DateTimeFormat(pattern = "YYYY-MM-dd HH:mm:ss")
    private Date lastLoginTime;

    private String token;

    public String getToken() {
        return token;
    }

    public UserTokenVO setToken(String token) {
        this.token = token;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public UserTokenVO setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getUserRole() {
        return userRole;
    }

    public UserTokenVO setUserRole(String userRole) {
        this.userRole = userRole;
        return this;
    }

    public String getUserIdCard() {
        return userIdCard;
    }

    public UserTokenVO setUserIdCard(String userIdCard) {
        this.userIdCard = userIdCard;
        return this;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public UserTokenVO setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
        return this;
    }
}
